#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int strlen_arr(char* s)
{
	char* p = s;
	while (*p != '\0')
	{
		p++;
	}
	return p - s;
}
int main()
{
	char len[10000] = { 0 };
	gets(len);
	int num = 0;
	num = strlen_arr(len);
	char* ch = len+num-1;
	int i = 0;

	for (i = 0; i < num; i++)
	{
		putchar(*(ch - i));
	}
	return 0;
}
